package  
{
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Text;
	/**
	 * © 2012 TheJavaArcade.com
	 */	
	public class Textbox extends Entity {
		public var theText:Text;
		
		public function Textbox(fontSize:int = 16, textAlign:String = "left", isVisible:Boolean = true, initialText:String = "") {
			theText = new Text(initialText);
			theText.size = fontSize;
			theText.color = 0xffffff;
			visible = isVisible;
			graphic = theText;
			theText.align = textAlign;
			layer = -10;
		}
		
	}

}